// app/controller/home.js
const Controller = require('egg').Controller;

class HomeController extends Controller {
    async index() {
        this.ctx.body = {dataType: 'json', title:'Hello world', data:{a:"aaa", b:"bbb"}};
        //this.ctx.body.json({dataType: 'json', title:'Hello world', data:{a:"aaa", b:"bbb"}});
    }
}

module.exports = HomeController;